let sum: (num1: number , num2: number) => number
const num = sum(1,2)
type sum2 = (num1: number , num2: number) => number
let num2: sum2
let num3 = num2(1,2)
console.log(num3)


type num4 = number | string

type direction = 'left' | 'up' | 'down' | 'right'
let num5: direction = 'down'
interface num6 {
    length:number
}
type num8 = num6& num4
let num9:num8 = '123'